package com.eway.viewanimator;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class CollectActivity extends AppCompatActivity implements View.OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_collect);

		findViewById(R.id.splash).setOnClickListener(this);
		findViewById(R.id.viewAnimation).setOnClickListener(this);
		findViewById(R.id.loading).setOnClickListener(this);
		findViewById(R.id.radar).setOnClickListener(this);
		findViewById(R.id.fragme_animation).setOnClickListener(this);
		findViewById(R.id.value_animator).setOnClickListener(this);
		findViewById(R.id.object_start).setOnClickListener(this);

		findViewById(R.id.custom_interpolator).setOnClickListener(this);
		findViewById(R.id.azobject).setOnClickListener(this);
		findViewById(R.id.animator_set).setOnClickListener(this);

		findViewById(R.id.jump_activity).setOnClickListener(this);
		findViewById(R.id.proertyValuesholder).setOnClickListener(this);
		findViewById(R.id.keyfragment_btn).setOnClickListener(this);
		findViewById(R.id.view_property_animator).setOnClickListener(this);

		findViewById(R.id.animateLayoutChanges_start).setOnClickListener(this);
		findViewById(R.id.layoutTransition_jump).setOnClickListener(this);

		findViewById(R.id.bottom_activity).setOnClickListener(this);


	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.viewAnimation:
				IntentUtils.intentUtil(CollectActivity.this, ViewAnimationActivity.class);
				break;
			case R.id.splash:
				IntentUtils.intentUtil(CollectActivity.this, SplashActivity.class);
				break;
			case R.id.loading:
				IntentUtils.intentUtil(CollectActivity.this, LoadingView.class);
				break;
			case R.id.radar:
				IntentUtils.intentUtil(CollectActivity.this, RadarActivity.class);
				break;
			case R.id.fragme_animation:
				IntentUtils.intentUtil(CollectActivity.this, FrameAnimationActivity.class);
				break;
			case R.id.value_animator:
				IntentUtils.intentUtil(CollectActivity.this, Value_Animator_Activity.class);
				break;
			case R.id.custom_interpolator:
				IntentUtils.intentUtil(CollectActivity.this, CustomInterpolatorActivity.class);
				break;
			case R.id.azobject:
				IntentUtils.intentUtil(CollectActivity.this, AtoZDemo.class);
				break;
			case R.id.object_start:
				IntentUtils.intentUtil(CollectActivity.this, Object_Animator_activity.class);
				break;

			case R.id.animator_set:
				IntentUtils.intentUtil(CollectActivity.this, AnimatorSet_Activity.class);
				break;


			case R.id.jump_activity:
				IntentUtils.intentUtil(CollectActivity.this, JumpActivity.class);
//				overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
				overridePendingTransition(R.anim.anim_in, R.anim.anim_out);
				break;

			case R.id.proertyValuesholder:
				IntentUtils.intentUtil(CollectActivity.this, ProertyValuesHolder_Activity.class);
				overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
				break;

			case R.id.keyfragment_btn:
				IntentUtils.intentUtil(CollectActivity.this, KeyFragment_Activity.class);
				break;

			case R.id.view_property_animator:
				IntentUtils.intentUtil(CollectActivity.this, View_Property_animator_Activity.class);
				break;

			case R.id.animateLayoutChanges_start:
				IntentUtils.intentUtil(CollectActivity.this, AnimateLayoutChangesActivity.class);
				break;

			case R.id.layoutTransition_jump:
				IntentUtils.intentUtil(CollectActivity.this, LayoutTranslationActivity.class);

			case R.id.bottom_activity:
				IntentUtils.intentUtil(CollectActivity.this, BottomActivity.class);
				overridePendingTransition(R.anim.bottom_activity_in, R.anim.bottom_activity_out);
				break;
			default:
				break;
		}
	}
}
